home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
util
/
boot
/
SuperPass21.lha
/
Install_SuperPass
< prev
next >
Wrap
Text File
|
1995-06-25
|
3KB
|
107 lines
; SuperPass 2.0b Installer script
; $VER: SuperPass 2.0b (6/15/95)
;
; Check that the C: directory exists
(if (NOT (exists "c:"))
(
(abort "Can't find the c: directory")
))
; Copy the executables to it
(copyfiles
(prompt "")
(help @copyfiles-help)
(source "SuperPass")
(dest "c:"))
(copyfiles
(prompt "")
(source "SuperPass_install")
(dest "c:"))
(run (cat "lzx -m x reboot.lzx ram:" ))
(copyfiles
(prompt "")
(source "ram:reboot")
(dest "c:"))
; Find out what sort of installation this is
(set choice (askchoice
(prompt "Would you like to run the installation utility now?")
(choices "Yes, run it now!" "No, I'll do it later.")
(help
(cat "The installation utility will allow you to configure and set up "
"SuperPass 2.0. It is strongly recommended that you run it NOW! "
"\n\nIf you choose to run the install utility, the password file "
"you should use, unless you know what you're doing, is s:jdw.passwords."
))
))
(if (= choice 0)
(
; run it now!
(if (NOT (exists "c:superpass_install"))
(
(abort "Can't find the Install utility!")
))
(textfile (dest "t:temp.s")
(append (cat "superpass_install -p\n"
"endcli\n")))
(run (cat "newcli from t:temp.s" ))
(run (cat "delete t:temp.s" ))
))
; Manual installation
; Now ask for tried and config file
(set tries (askstring
(prompt "Please enter the number of tries before restart:")
(default "3")
(help
(cat "This number will be used in the arguments added to the startup "
"files in order to determine the number of tries the user gets "
"before rebooting the computer."
))
))
(set pwfile (askstring
(prompt "Please enter the password file you wish to use here:")
(default "s:jdw.passwords")
(help
(cat "The filename you enter here should be the filename you entered "
"in the installation utility. If you did not run the installation "
"utility yet, please use the filename of your choice and enter it "
"into the utility when you run it."
))
))
; If a try and pwfile was selected, put it in the user-startup file
(startup "SuperPass"
(prompt "Do you want to add the lines needed to your user-startup?")
(help
(cat "You are advised to add the lines in order to simplify the "
"installation process."
))
(command "c:SuperPass -t"tries" -f"pwfile)
)
; Now exit, telling them what the situation is
(if (= choice 0)
(
; Installation was run
(exit
(cat "You will have to reboot the system before you can use the "
"program.\n\nDon't forget to read the dox from the REBOOT "
"package! They're in your RAM: directory right now!"
))
)
(
; Installation was manual
(exit
(cat "You have elected to run the installation utility at a later time. "
"You should run it immediately after finishing this, and you must "
"run it BEFORE rebooting your machine.\n\nDon't forget to read the "
"dox from the REBOOT package! They're sitting in your RAM: "
"directory right now!"
))
))